import loadable from '@loadable/component';
import { RouteConfig } from 'react-router-config';

const routesConfig: RouteConfig[] = [
  {
    path: '/',
    exact: true,
    component: loadable(() => import('@/pages/Article')),
  },
  {
    path: '/gallery',
    exact: true,
    component: loadable(() => import('@/pages/Gallery')),
  },
  {
    path: '/experiment',
    exact: true,
    component: loadable(() => import('@/pages/Experiment')),
  },
  {
    path: '/login',
    exact: true,
    component: loadable(() => import('@/pages/Login')),
  },
];

export default routesConfig;
